package cn.panda.edu.service;

import cn.panda.edu.model.Judge;
import com.github.pagehelper.PageInfo;

/**
 * 
 * 接口描述：  判断题接口
 * @author: 张春雷
 * @date： 2018-01-18 上午11:02:47
 */
public interface JudgeService {
	/**
	 * 
	* @Title: listJudgeByCourseId 
	* @Description:cxf 根据课程id分页查询该课程对应试卷的判断题
	* @param courseId
	* @param pageIndex
	* @param pageSize
	* @return  
	* PageInfo<Judge>
	 */
	PageInfo<Judge> listJudgeByCourseId(Integer courseId, Integer pageIndex, Integer pageSize);

	/**
	 * 
	* @Title: listJudgeBySectionTestId 
	* @Description: cxf根据章节测试id分页获取对应的判断题
	* @param sectionTestId
	* @param pageIndex
	* @param pageSize
	* @return  
	* PageInfo<Judge>
	 */
	PageInfo<Judge> listJudgeBySectionTestId(Integer sectionTestId, Integer pageIndex, Integer pageSize);
	/**
	 * 
	* @Title: selectByPrimaryKey 
	* @Description: TODO 根据题目ID查询
	* @param @param judgeId
	* @param @return  
	* @return Judge
	 */
	Judge selectByPrimaryKey(Integer judgeId);
	
	/**
	 * 
	* @Title: updateByPrimaryKeySelective 
	* @Description: TODO 动态更新判断题
	* @param @param record
	* @param @return  
	* @return int
	 */
	int updateByPrimaryKeySelective(Judge record);
	
	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description: 根据题目编号删除
	 * @param @param
	 *            judgeId
	 * @param @return
	 * @return int
	 */
	int deleteByPrimaryKey(Integer judgeId);
	
	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description: 动态添加判断题
	 * @param @param
	 *            judgeId
	 * @param @return
	 * @return int
	 */
	int insertSelective(Judge record);
}
